//
//  NSString+MarsSafeUrlCode.h
//  WKWebDemo
//
//  Created by yangpenghua on 2018/3/27.
//  Copyright © 2018年 linzi. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (MarsSafeUrlCode)
/**
 *  @brief  mars_urlEncode
 *
 *  @return mars_urlEncode 后的字符串
 */
- (NSString *)mars_urlEncode;
/**
 *  @brief  mars_urlEncode
 *
 *  @param encoding encoding模式
 *
 *  @return mars_urlEncode 后的字符串
 */
- (NSString *)mars_urlEncodeUsingEncoding:(NSStringEncoding)encoding;
/**
 *  @brief  mars_urlDecode
 *
 *  @return mars_urlDecode 后的字符串
 */
- (NSString *)mars_urlDecode;
/**
 *  @brief  mars_urlDecode
 *
 *  @param encoding encoding模式
 *
 *  @return mars_urlDecode 后的字符串
 */
- (NSString *)mars_urlDecodeUsingEncoding:(NSStringEncoding)encoding;

/**
 *  @brief  url query转成NSDictionary
 *
 *  @return NSDictionary
 */
- (NSDictionary *)mars_dictionaryFromURLParameters;
@end
